package com.exam.service;

import com.exam.po.ExamManage;
import com.exam.po.Paper;

import java.util.List;

/**
 * @author mahaoqi
 * @ClassName ExamServiceImpl
 * @Description 添加考试+自动组卷的业务功能设计
 * @Date 2021/1/12 11:00
 * @Version 1.0
 **/
public interface ExamService {

    /*
     * @Author mahaoqi
     * @Description 添加考试
     * @Date 2021/1/13 10:34
     * @Param [paper, examManage, teacherid]
     * @return boolean
     **/
    public boolean addPaper(Paper paper, ExamManage examManage, Integer teacherid);

    /*
     * @Author mahaoqi
     * @Description 查找所有状态为 已审核的考试
     * @Date 2021/1/13 10:35
     * @Param [teacherid, page, pageSize]
     * @return java.util.List<com.exam.po.ExamManage>
     **/
    public List<ExamManage> findList(Integer teacherid, int page, int pageSize);
    public Integer findListCount(Integer teacherid);

    /*
     * @Author mahaoqi
     * @Description 查找所有状态为 未通过的考试
     * @Date 2021/1/13 10:35
     * @Param [teacherid, page, pageSize]
     * @return java.util.List<com.exam.po.ExamManage>
     **/
    public List<ExamManage> findNoList(Integer teacherid, int page, int pageSize);

    /*
     * @Author mahaoqi
     * @Description 查找添加考试是需要用到的  tcid
     * @Date 2021/1/13 10:36
     * @Param [teacherid, coursename]
     * @return java.lang.Integer
     **/
    public Integer findTCid(Integer teacherid, String coursename);

    /*
     * @Author mahaoqi
     * @Description 修改状态为 未通过 的考试
     * @Date 2021/1/13 10:36
     * @Param [examManage]
     * @return boolean
     **/
    boolean modifyExam(ExamManage examManage);
}
